import request from '@/utils/request'

// 查询非遗信息列表
export function listHeritage(query) {
  return request({
    url: '/user/heritage/list',
    method: 'get',
    params: query
  })
}

// 新增非遗信息
export function addHeritage(data) {
  return request({
    url: '/user/heritage',
    method: 'post',
    data: data
  })
}

// 查询非遗信息详细
export function getHeritage(heritageId) {
  return request({
    url: '/user/heritage/' + heritageId,
    method: 'get'
  })
}

// 获取非遗类型列表
export function getHeritageTypes() {
  return request({
    url: '/user/heritage/types',
    method: 'get'
  })
} 